package com.aaa.dem1103.d03;

import java.util.function.Supplier;

/**
 * @Author: whj
 * @Version 1.0
 * @Date: 2022/11/3  17:27
 */
public class TestSupplier {
    public static void main(String[] args) {
        Supplier<String> s=()->{return "汪豪杰真帅";};
        fun(s);
    }

    public static void fun(Supplier<String> supplier){
        String a = supplier.get();
        System.out.println(a);
    }
}
